Pair

public interface Pair

A key-value pair that represents a segment of a multi-part form data. Can contain values corresponding a form field content, an upload file content, etc.

Functions

Link copied to clipboard
Returns the form content segment value as a file.
Link copied to clipboard
public String key()
Returns a string that represents the form content segment key.
Link copied to clipboard
public static MultipartFormData.Pair of(String key, File value)
public static MultipartFormData.Pair of(String key, String value)
Returns the Pair instance for the given key and value.
Link copied to clipboard
Returns the form content segment value as a string.